<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.Date"%>
<!DOCTYPEs>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/resources/js/product/product_use_register.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/main_font.css" />

<title>四川芝麻开门管理系统</title>
</head>
<body>
	<div class="container">
		<c:set var="housekeeper" scope="session" value="${housekeeper}" />
		<c:if test="${housekeeper==null}">
			<span><a
				href="${pageContext.request.contextPath}/pagejump/toLogin">您未登陆哦，请登陆！</a></span>
		</c:if>
		<c:if test="${housekeeper!=null}">
			<span>${sessionScope.housekeeper.name},欢迎您！<a
				href="${pageContext.request.contextPath}/pagejump/toLogin">退出登陆</a></span>
		</c:if>
	</div>
	<div class="container">
		<span><a
			href="${pageContext.request.contextPath}/pagejump/toIndex">主页</a>><a
			href="${pageContext.request.contextPath}/admin/product_use">产品登记管理</a>>产品使用登记</span>
	</div>
	<div id="Return">
		<c:set var="response" scope="request" value="${serverResponse}" />
		<c:if test="${response.status==1}">
			<font color='red'>${response.msg}</font>
		</c:if>
	</div>
	<div class="container">
		<div style="width: 300px">
			<form
				action="${pageContext.request.contextPath}/product_use_register/register"
				id="formPUR">
				<div class="form-group" id="timeDiv">
					<label for="time">安装时间</label> <input type="date"
						class="form-control" id="time" placeholder="time" name="time"
						onchange="product_name_select()">
				</div>
				<div class="form-group" id="product_nameDiv">
					<label for="product_name">产品名</label> 
					<!-- <input type="text"
						class="form-control" id="product_name" placeholder="product"
						name="product_name" list="product_name_list" autocomplete="off"
						onchange="product_model_select()">
					<datalist id="product_name_list">
					</datalist> -->
						<select id="product_name" name="product_name" onclick="product_model_select()">
						</select>
				</div>
				<div class="form-group" id="product_modelDiv">
					<label for="product_model">产品型号</label> 
					<!-- <input type="text"
						class="form-control" id="product_model"
						placeholder="product_model" name="product_model" autocomplete="off"
						list="product_model_list" onchange="wristband_name_select()">
					<datalist id="product_model_list">
					</datalist> -->
					<select id="product_model" name="product_model" onclick="wristband_name_select()">
					</select>
				</div>
				<div class="form-group" id="wristband_nameDiv">
					<label for="wristband_name">手环名</label> 
					<!-- <input type="text"
						class="form-control" id="wristband_name" placeholder="wristband"
						name="wristband_name" list="wristband_name_list" autocomplete="off"
						onchange="wristband_model_select()">
					<datalist id="wristband_name_list">
					</datalist> -->
					<select id="wristband_name" name="wristband_name" onclick="wristband_model_select()">
						</select>
				</div>
				<div class="form-group" id="wristband_modelDiv">
					<label for="wristband_model">手环型号</label> 
					<!-- <input type="text"
						class="form-control" id="wristband_model" autocomplete="off"
						list="wristband_model_list" placeholder="wristband_model"
						name="wristband_model">
					<datalist id="wristband_model_list">
					</datalist> -->
					<select id="wristband_model" name="wristband_model">
					</select>
				</div>
				<div class="form-group" id="wristband_numberDiv">
					<label for="wristband_number">手环数</label> <input type="text" autocomplete="off"
						class="form-control" id="wristband_number" placeholder="number"
						name="wristband_number" onkeyup="value=value.replace(/[^\d]/g,'')">
				</div>
				<div class="form-group" id="client_nameDiv">
					<label for="client_name">客户名</label> <input type="text"
						class="form-control" id="client_name" placeholder="client"
						name="client_name" autocomplete="off">
				</div>
				<div class="form-group" id="client_phoneDiv">
					<label for="client_phone">客户手机</label> <input type="text"
						class="form-control" id="client_phone" placeholder="phone"
						name="client_phone" autocomplete="off">
				</div>
				<div class="form-group" id="uptown_nameDiv">
					<label for="uptown_name">客户所在小区名（例：成都市十陵小区）</label> <input type="text"
						class="form-control" id="uptown_name" placeholder="uptown_name"
						name="uptown_name" autocomplete="off">
				</div>
				<div class="form-group" id="client_addressDiv">
					<label for="client_address">详细地址，门牌号</label> <input type="text"
						class="form-control" id="client_address" placeholder="address"
						name="client_address" autocomplete="off">
				</div>
				<div class="form-group" id="Vip_numberDiv">
					<label for="Vip_number">产品关联号</label> <input type="text"
						class="form-control" id="Vip_number" placeholder="Vip_number"
						name="Vip_number" autocomplete="off">
				</div>
				<div class="form-group" id="install_manDiv">
					<label for="install_man">安装人员</label> <input type="text"
						class="form-control" id="install_man" placeholder="name"
						name="install_man" autocomplete="off">
				</div>
				<div class="form-group" id="service_manDiv">
					<label for="service_man">服务人员</label> <input type="text"
						class="form-control" id="service_man" placeholder="name"
						name="service_man" autocomplete="off" list="export_warehouse_man_list">
					<datalist id="service_man_list">
						<option>${sessionScope.housekeeper.name}</option>
					</datalist>
				</div>
				<div class="form-group" id="service_stronghold_nameDiv">
					<label for="service_stronghold_name">服务点</label> <input type="text"
						class="form-control" id="service_stronghold_name" autocomplete="off" 
						placeholder="name" name="service_stronghold_name" list="service_stronghold_name_list">
					<datalist id="service_stronghold_name_list">
						<option>${sessionScope.housekeeper.housekeeper_address}</option>
					</datalist>
						
				</div>
				<div class="form-group" id="paymentDiv">
					<label for="payment">付款情况</label> 
					<!-- <input type="text"
						class="form-control" id="payment" placeholder="payment"
						name="payment" autocomplete="off" > -->
						<select id="payment" name="payment">
							<option value="0">付款情况</option>
							<option>已付款</option>
							<option>未付款</option>
							<option>其他</option>
						</select>
				</div>
				<div class="form-group" id="">
					<label for="remarks">备注</label>
					<textarea rows="3" cols="25" warp="soft"
						style="border: solid 1px #a8acb2;" id="remarks" name="remarks"></textarea>
					<!-- <input type="text"
						class="form-control" id="exampleInputPassword1"
						placeholder="remarks" name="remarks"> -->
				</div>
				<div>
					<button type="button" class="btn btn-success"
						onclick="registerVerify()">提交</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>